/*
 * Copyright 2010-2012 Susanta Tewari. <freecode4susant@users.sourceforge.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package genomemap.netbeans.jobs1.tab08;

import cef.command.Command;
import cef.command.DescribeObjectCommand;
import cef.pui.EventConstructionException;
import cef.pui.EventImpl;
import commons.nb.jobs.Job;
import genomemap.cef.command.listener.DescribeObject_PW_s;
import genomemap.cef.pui.DescribeObjectEventImpls;
import genomemap.nb.jobs.properties.Propertys_Gen;

/**
 *
 *
 * @version 1.3.0
 * @author Susanta Tewari
 * @history Created on 3/15/13
 * @since 1.3.0
 */
public class DescribeTAB08DataJob extends Job<DescribeObjectEventImpls.DescribeTAB08Data> {

    public DescribeTAB08DataJob() {

        setName("describe-object-tab08data");
        setDisplayName("Describe TAB08 Data");
        setShortDescription("Prints useful information on TAB08 Data");


        // data
        addComboProperty(Propertys_Gen.BUILDER_DATA_TAB08Data());


        // listeners
        addCommandOutputListener(new DescribeObject_PW_s.TAB08DataPW());
    }

    @Override
    protected DescribeObjectEventImpls.DescribeTAB08Data createEvent()
            throws EventConstructionException {
        return new DescribeObjectEventImpls.DescribeTAB08Data(getProperties());
    }

    @Override
    protected Command createCommand(final DescribeObjectEventImpls.DescribeTAB08Data event) {
        return new DescribeObjectCommand<>(event);
    }

    @Override
    public boolean isCancellable() {
        return false;
    }

    @Override
    public Class<? extends EventImpl> getEventImplType() {
        return DescribeObjectEventImpls.DescribeTAB08Data.class;
    }
}
